<#macro showCompanyHeadToobar>
	<div class="headerTbar" id="headerTbar">
	<A href="javascript:try {window.external.AddFavorite('${base}/membercenter/index.action?username=${member.username}','${base}/membercenter/index.action?username=${member.username}');} catch(e) {}"   >
	<FONT >收藏本站</FONT>
	</A>  
	<A style="cursor:hand" onClick="try {this.style.behavior='url(#default#homepage)';this.setHomePage('${base}/membercenter/index.action?username=${member.username}');} catch(e) {}" href="#" >
	<FONT >设为首页</FONT>
	</A> 
	<a class="linkmore1" href="${base}/membercenter/index.action?paraSucStr=message&username=${member.username}#msg"><img width="20" height="20" border="0" alt="write" src="${base}/images/write.gif"/><strong>给我留言</strong></a>
	</div>
	<div class="header" id="header">
	<div class="webtitle " id="webtitle">
	<strong><a href="${base}/membercenter/index.action?username=${member?if_exists.username?if_exists}" target="_blank">${member?if_exists.companyname?default("欢迎来到我们的企业网站")} 欢迎您！</a></strong>
	</div>
	</div>
</#macro>

<#macro showCompanyHeadImg>
	<@showCompanyHeadToobar />
	<div  id="headerImg" style="background-image:url(${base}/images/banner.jpg); width:100%; height:200px;" ></div>
</#macro>

<#macro showCompanyHeadNav>
<div id="top_nav"  class="topmenu" >
	<div class="topmenubg">
		<div class="topmenucont b">
			<ul>
			<li class="<#if !paraSucStr?exists>orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?username=${member?if_exists.username?if_exists}" class="draft_no_link">首页</a>&nbsp;&nbsp;
			</li>
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="tagmsg">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=tagmsg&username=${member?if_exists.username?if_exists}"    class="draft_no_link" >分类信息</a>&nbsp;&nbsp;
			</li>			
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="product">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=product&username=${member?if_exists.username?if_exists}"    class="draft_no_link" >供应产品</a>&nbsp;&nbsp;
			</li>
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="introduce">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=introduce&username=${member?if_exists.username?if_exists}"   class="draft_no_link" >公司介绍</a>&nbsp;&nbsp;
			</li>
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="webnews">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=webnews&username=${member?if_exists.username?if_exists}"     class="draft_no_link" >新闻中心</a>&nbsp;&nbsp;
			</li>
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="businessinfo">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=businessinfo&username=${member?if_exists.username?if_exists}"    class="draft_no_link" >供求信息</a>&nbsp;&nbsp;
			</li>
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="jobinfo">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=jobinfo&username=${member?if_exists.username?if_exists}"    class="draft_no_link" >人才招聘</a>&nbsp;&nbsp;
			</li>			
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="message">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=message&username=${member?if_exists.username?if_exists}"    class="draft_no_link" >在线留言</a>&nbsp;&nbsp;
			</li>
			<li class="fengge">&nbsp;</li>
			<li  class="<#if !paraSucStr?exists>uncheck<#elseif paraSucStr=="contact">orange check<#else>uncheck</#if>" >&nbsp;&nbsp;
				<a href="${base}/membercenter/index.action?paraSucStr=contact&username=${member?if_exists.username?if_exists}"    class="draft_no_link" >联系方式</a>&nbsp;&nbsp;
			</li>
			</ul>
		</div>
	</div>
</div>	
</#macro>

<#macro showCompanyContact>
<div class="left_box" >
	<div id="contact_column">
	  <div>
	    <div>${member?if_exists.username?if_exists} ${member?if_exists.sex?if_exists}（${member?if_exists.job?default("经理")}）   </div>
	    <ul>
	      <li>电    话：${member?if_exists.telphone?if_exists} </li>
	      <li>移动电话：${member?if_exists.mobile?if_exists} </li>
	      <li>传    真：${member?if_exists.fax?if_exists} </li>
	      <li>地    址：${member?if_exists.companyplace?if_exists}</li>
	      <li>邮    编：${member?if_exists.zip?if_exists} </li>
	      <li>公司主页： </li>
	      <#if member?if_exists.companyWebsite?exists ><li>  <a href="${member?if_exists.companyWebsite?if_exists}" target="_blank" >${member?if_exists.companyname?if_exists}</a> </li></#if>
	      <li>  <a href="${base}/membercenter/index.action?username=${member?if_exists.username?if_exists}" target="_blank">${member?if_exists.companyname?if_exists}</a> </li>
	    </ul>
	  </div>
	</div>
</div><!--left_box end-->
</#macro>

<#macro showCompanyProductCat>
	<div id="menu3" >
	<ul  >
	<@ww.action id="productcat4ui" executeResult="false" namespace="/membercenter" name="getProductcat" ><@ww.param name = "id" value="${member.id}" /><@ww.param name = "pageSize" value="100" /></@ww.action>
	<#assign result = attr.productcat4ui.pageRecords?if_exists>
	<#if result?exists && !result.isEmpty()>
	    <#list result as each>
			<li><a href="${base}/membercenter/index.action?paraSucStr=product&username=${member.username}&productCatId=${each.id}" title="Link 1">${each.name}</a></li>
		</#list>
	<#else>
	<li><a href="${base}/membercenter/index.action?paraSucStr=product&username=${member.username}" title="Link 1">所有产品</a></li>
	</#if>
	</ul>
	</div>
</#macro>

<#macro showCompanyFriendLink>
	 <div class="left_box" style="height:200px;"> 
	 <ul  >
	<li><a href="http://www.zbsww.com.cn" title="浙北商务网 || 长兴电子商务网 " target="_blank">浙北商务网</a></li>
	<li><a href="http://www.zjcxrc.com.cn" title="长兴人事人才网-长兴人才官方网站 " target="_blank">长兴人事人才网</a></li>
	<@ww.action id="friendlink4ui" executeResult="false" namespace="/membercenter" name="getFriendlink" ><@ww.param name = "id" value="${member.id}" /><@ww.param name = "pageSize" value="100" /><@ww.param name="paraSucStr" >cjkd</@ww.param></@ww.action>
	<#assign result = attr.friendlink4ui.pageRecords?if_exists>
	<#if result?exists && !result.isEmpty()>
	    <#list result as each>
			<li><a href="http://${each.href?if_exists}" title="${each.name?if_exists} || ${each.memo?if_exists} " target="_blank">${each.name?if_exists}</a></li>
		</#list>
	<#else>

	</#if>      
	  </ul  >        
	      </div>
</#macro>

<#macro showCompanyProductSearch>
	<script language="javascript" type="text/javascript">
	function funcSearch() {
	    var keywords = document.getElementById("keywords_product").value;
	    if (keywords == null || Trim(keywords) == "" || keywords == "输入产品关键字") {
	        alert("请输入要查找信息的关键字！");
	        document.getElementById("keywords_product").focus();
	        return false;
	    } else {
	        window.location.href="${base}/membercenter/getProduct.action?paraSucStr=product&id=${member.id}&keyword=" + keywords;
	    }
	}
	function funcEnter() {
	   
		    funcSearch();
		
	}
	function funcFocus(text) {
	    if (text.value=="输入产品关键字" || Trim(text.value)=="") {
	        text.value="";
	    }
	}
	function Trim(str){
	    if(str.charAt(0) == " "){
	        str = str.slice(1);
	        str = Trim(str);
	    }
	    return str;
	}
	</script>
      <div id="search_in_site" class="content1_1 ">
       
        <div class="content">
          <div>
            <input type="text" class="fl"  style="width:130px;" id="keywords_product"  name="keywords_product" value="输入产品关键字" size="13" onfocus="javascript:funcFocus(this)" onkeypress="javascript:funcEnter()"  />
            <input type="button" value="搜索" class="fr"  style=" margin-right:25px; padding-right:30px;" onmousedown="" onclick="javascript:funcSearch()"  />
            <div class="clear"></div>
          </div>
        </div>
      </div>
 </#macro>  
    
<#macro showCompanyLeft>
	<div class="title"> 产品分类 </div>
	<@showCompanyProductCat />
	<div class="title"> 产品搜索 </div>
	<@showCompanyProductSearch />
	<div class="title"> 联系方式 </div>
	<@showCompanyContact />
	<div class="title"> 友情链接 </div>
	<@showCompanyFriendLink />     
</#macro>  
<#macro showCompanyWebnewscat>
	<div class="title"> 新闻类别 </div>
	<div id="menu3" >
	<ul  >
	<@ww.action id="webnewscat4ui" executeResult="false" namespace="/membercenter" name="getWebnewsCat" ><@ww.param name = "id" value="${member.id}" /><@ww.param name = "pageSize" value="100" /></@ww.action>
	<#assign result = attr.webnewscat4ui.pageRecords?if_exists>
	<#if result?exists && !result.isEmpty()>
	<#list result as each>
		<li><a href="${base}/membercenter/index.action?paraSucStr=webnews&username=${member.username}&webNewsCatId=${each.id}" title="Link 1">${each.name}</a></li>
	</#list>
	<#else>
	<li><a href="#1" title="Link 1">所有新闻</a></li>
	</#if>
	</ul>
	</div>
</#macro>

<#macro showCompanyBusinessinfocat>
	<div class="title"> 供求信息 </div>
	<div id="menu3" >
	<ul  >
	<li><a href="${base}/membercenter/index.action?paraSucStr=businessinfo&username=${member.username}&from=1" title="Link 1">供应信息</a></li>
	<li><a href="${base}/membercenter/index.action?paraSucStr=businessinfo&username=${member.username}&from=0" title="Link 1">采购信息</a></li>
	</ul>
	</div>
</#macro>
<#macro showCompanyProduct>
						<ul class="product-list-ul">
						

<#assign result = attr.product4ui.pageRecords?if_exists>
<#if result?exists && !result.isEmpty()>
    <#list result as each>
							<li>
								<div class="item-properties" style="padding:2px 0 0px 15px;">
									<div class="pic">
										<a target="_blank" href="${base}/membercenter/productDetail.action?id=${each.id}" >
											<img src="<#if (each.picPath?index_of("http:")?number>-1) > ${each.picPath?if_exists}<#else>${base}/${each.picPath?if_exists} </#if>" alt=""  style="height: 160px; width: 160px;border:0;"  />
										</a>
									</div>
									<div><a target="_blank" href="${base}/membercenter/productDetail.action?id=${each.id}" ><@common.ellipsis each.name?default(""), 10 />  </a></div>

              
								</div>
							</li>
	</#list>
<#else>
很抱歉，资料正在准备。
</#if> 
						</ul>
</#macro>	

<#macro showCompanyTag>
	<div class="title"> 分类标签 </div>
	<div id="menu3" >
	<ul  >
	<@ww.action id="tag4ui" executeResult="false" namespace="/membercenter" name="listTag" ><@ww.param name = "id" value="${member.id}" /><@ww.param name = "pageSize" value="100" /></@ww.action>
	<#assign result = attr.tag4ui.pageRecords?if_exists>
	<#if result?exists && result?has_content>
		<#list result as each>
			<li><a href="${base}/membercenter/index.action?paraSucStr=tagmsg&username=${member.username}&tag=${each?if_exists}" title="Link 1">${each?if_exists}</a></li>
		</#list>
	<#else>
<li><a href="${base}/membercenter/index.action?paraSucStr=tagmsg&username=${member.username}" title="Link 1">所有分类信息</a></li>	

	</#if>
	</ul>
	</div>
</#macro>					